home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Know Your Hockey - The Greatest Player Resource
/
Know Your Hockey: The Greatest Player Resource.iso
/
hockey
/
director
/
ssqcst.cst
/
00030_Script_Medialist Setup Scripts
< prev
next >
Wrap
Text File
|
1998-09-28
|
5KB
|
132 lines
-- basically the script looks for marker text member named a specific way then creates a list from the names
-- of the member members next to the maker .
-- these member must be moved as a group the scripts do not care what
-- the name of the castmembers are: startmarker = Player(mediatype)# endmarker = Player(mediatype)End#
global gMediaList,gPlayerTitles,gXCast,gNumPlayers
on InitMedia
initPlayerTitles
set gMediaList = [:]
-- repeat loop only for the sprite range of the player sprites
set the itemDelimiter to ","
repeat with y = 1 to gNumPlayers
loadplayer y
end repeat
end
-- loads the title sound in for each player
on initPlayerTitles
set gPlayerTitles = []
set Location = (the number of member "PlayerTitle" of castlib gXCast )+1 -- the Start Maker
Set EndLocation = (the number of member "PlayerTitleEnd" of castlib gXCast)-1 -- the End Marker
repeat with x =Location to Endlocation
append gplayerTitles, the name of member x
end repeat
end
-- each handler is specific for each player on the screen
-- and creates a temporary property list which in put into the master poperty list GMedia List
on loadplayer y
set player1 = [:]
set Marker1 = "PlayerCards" & y
set Marker2 = "PlayerCardsEnd" & y
set Location = (the number of member Marker1 of castlib gXCast )+1 -- the Start Maker
Set EndLocation = (the number of member Marker2 of castlib gXCast)-1 -- the End Marker
set c =[]
repeat with x =Location to Endlocation
append c, the name of member x
end repeat
addProp(player1,#card,c )
set Marker1 = "PlayerVideo" & y
set Marker2 = "PlayerVideoEnd" & y
set Location = (the number of member marker1 of castlib gXCast)+1
Set EndLocation = (the number of member marker2 of castlib gXCast)-1
set c =[]
repeat with x =Location to Endlocation
append c, the name of member x
end repeat
addProp(player1, #video,c )
set Marker1 = "PlayerText" & y
set Marker2 = "PlayerTextEnd" & y
set Location = (the number of member marker1 of castlib gXCast)+1
Set EndLocation = (the number of member marker2 of castlib gXCast)-1
set c =[] -- holds the text graphics
-- this script looks for the number of sets of text cards for the player
-- look for fields between the marker members and uses these to decide know how many
-- txt cards there are for each detail card
set txt = []
set interrange = 0
set a = []
set b =[]
set g = []
set d = []
set e = []
set f = []
repeat with x =Location to Endlocation
set test = the type of member x
case test of
#field:
set interrange=interrange+1
#bitmap:
case interrange of -- the max number of txt cards is six add additional appends to expand the range
0: append a , the name of member x
1: append b, the name of member x
2: append g, the name of member x
3: append d, the name of member x
4: append e, the name of member x
5: append f , the name of member x
end case
end case
end repeat
if a <> [] then append txt, a
if b <> [] then append txt, b
if g <> [] then append txt, g
if d <> [] then append txt, d
if e <> [] then append txt, e
if f <> [] then append txt, f
addProp(player1, #text,txt )
set Marker1 = "PlayerTitle" & y
set Marker2 = "PlayerTitleEnd" & y
set Location = (the number of member marker1 of castlib gXCast)+1
Set EndLocation = (the number of member marker2 of castlib gXCast)-1
set c =[]
repeat with x =Location to Endlocation
append c, the name of member x
end repeat
addProp(player1, #title,c )
set Marker1 = "PlayerAnn" & y
set Marker2 = "PlayerAnnEnd" & y
set Location = (the number of member marker1 of castlib gXCast)+1
Set EndLocation = (the number of member marker2 of castlib gXCast)-1
set c =[]
repeat with x =Location to Endlocation
append c, the name of member x
end repeat
addProp(player1, #Ann,c )
set Marker1 = "PlayerCoach" & y
set Marker2 = "PlayerCoachEnd" & y
set Location = (the number of member marker1 of castlib gXCast)+1
Set EndLocation = (the number of member marker2 of castlib gXCast)-1
set c =[]
repeat with x =Location to Endlocation
append c, the name of member x
end repeat
addProp(player1, #Coach,c )
do " AddProp(gMediaList ,#player" & y & ",player1)"
end